<?php
/**
 * Created by PhpStorm.
 * User: liuhong
 * Date: 2019-04-09
 * Time: 16:54
 */

namespace app\service;


use app\common\model\Article as ArticleModel;
use think\Db;
use think\Exception;

use GuzzleHttp\Client;
/**
 * 订单信息
 * Class OrderService
 * @package app\service
 */
class ArticleService extends BaseService
{
    public $articleModel;

    public function __construct()
    {
        $this->articleModel = new ArticleModel();
    }

    /**
     * 查询数量
     * @param $where
     * @return bool|int|string
     */
    public function countArticle($where)
    {
        try {
            return $this->articleModel->where($where)->count();
        } catch (Exception $ex) {
            LogService::S()->writeLog('Exception', $ex->getMessage());
            return false;
        }
    }
}